package org.example.spring.ioc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
public class ScopeTest {
    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(ScopeTest.class);
        Object person = ioc.getBean("zhangsan");
        System.out.println("person = "+ person);
        Object person1 = ioc.getBean("zhangsan");
        System.out.println("person1 = "+ person1);

        System.out.println(person == person1);
    }
}
